﻿using System;
using System.Web.Security;

namespace WebApplication1.Admin
{
    public partial class Index : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //FormsAuthentication.SetAuthCookie("abc", false);
            if (Context.User.Identity.IsAuthenticated)
            {
                Response.Write(Context.User.Identity.Name);
            }
            else
            {
                Response.Redirect("~");
            }

            //FormsAuthentication.SignOut();
        }
    }
}